Operating Systems Interview Questions You'll Most Likely Be Asked by Vibrant Publishers

Operating Systems Interview Questions You'll Most Likely Be Asked by Vibrant Publishers

Author:Vibrant Publishers
Language: eng
Format: epub
Tags: Operating Systems


185: What are the conditions for a deadlock?

Answer:

Deadlock may happen due to the following conditions:

a) Mutual Exclusion – There’s at least one resource that’s not sharable and hence can be used only by one process. If another process requests for it, it should wait until its available.

b) Hold & Wait – There’s at least one process that’s holding a resource and waiting for other resources that are held by other processes.

c) No Preemption – The resource will be released only after the process is completed.

d) Circular Wait – A set of processes wherein each process is waiting for a resource held by the proceeding one and the last one is waiting for a resource held by the first process. It becomes a circular wait since every process is waiting for a resource held by the next one and the last one is waiting for the resource held by the first.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.